package Interface.InterfaceDome006;

/**
 * ClassName:Text
 * Package:Interface.InterfaceDome006
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/25-13:53
 * @Version:v1.0
 */
public class Text {
    public static void main(String[] args) {
        PingPangCoach ppc = new PingPangCoach("张继科",35);
        System.out.println(ppc.getName()+" "+ppc.getAge()+"岁");
        ppc.speakEnglish();
        ppc.teach();
        System.out.println("============================");
        PingPangSporter pps = new PingPangSporter("张鑫",24);
        pps.study();
        pps.speakEnglish();
        System.out.println("============================");
        BasketballSporter bs =new BasketballSporter("张小鑫",24);
        bs.study();
        System.out.println("============================");
        BasketballCoach bc = new BasketballCoach("姚明",52);
        bc.teach();

    }
}
